package com.example.luckymoney.controller;

import com.example.luckymoney.config.LimitConfig;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@RestController
//@Controller
@RequestMapping("/hello")
public class HelloController {

    @Autowired
    private LimitConfig limitConfig;

    @GetMapping("/say")
    public String say(@RequestParam(value = "id", required = false,defaultValue = "0") Integer id){
//        return "说明：" + limitConfig.getDescription();
//        return "index";
        return "id:" +id;
    }
}
